<?
/*
 *   Pmail easy way to send emails
 *   Copyright (C) 2009  Felipe Theodoro Gonçalves (www.ftgoncalves.com)
 *
 *   This program is free software: you can redistribute it and/or modify
 *	 it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   This program is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */
?>
<div id="page">
	<h2><?= __d('pmail', 'Initial Configuration') ?></h2>
	<form action="<?= $html->url('/pmail/configs/set_config') ?>" method="post" enctype="application/x-www-form-urlencoded">
		<fieldset>
			<legend><?= __d('pmail', 'initial data') ?></legend>
			<p>
				<label for="name"><?= __d('pmail', 'Site name') ?></label>
				<br/>
				<?= $form->text('Config.site_name', array('class' => 'big', 'maxlength' => 30)); ?>
			</p>
			<p>
				<label for="address"><?= __d('pmail', 'Site address') ?></label>
				<br/>
				<?= $form->text('Config.site_address', array('class' => 'big', 'maxlength' => 60)); ?>
			</p>
			<p>
				<label for="from"><?= __d('pmail', 'From') ?></label>
				<br/>
				<?= $form->text('Config.from', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="everything"><?= __d('pmail', 'Email handle everything') ?></label>
				<br/>
				<?= $form->text('Config.email_handle_everything', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="smtp host">Smtp <?= __d('pmail', 'host') ?></label>
				<br/>
				<?= $form->text('Config.smtp_host', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="smtp port">Smtp <?= __d('pmail', 'port') ?></label>
				<br/>
				<?= $form->text('Config.smtp_port', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="smtp timeout">Smtp <?= __d('pmail', 'timeout') ?></label>
				<br/>
				<?= $form->text('Config.smtp_timeout', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="smtp login">Smtp <?= __d('pmail', 'login') ?></label>
				<br/>
				<?= $form->text('Config.smtp_login', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="smtp password">Smtp <?= __d('pmail', 'password') ?></label>
				<br/>
				<?= $form->text('Config.smtp_password', array('class' => 'big', 'maxlength' => 80)); ?>
			</p>
			<p>
				<label for="signature"><?= __d('pmail', 'Signature') ?></label>
				<br/>
				<?= $form->textarea('Config.signature', array('rows' => 10, 'class' => 'select_big')) ?>
			</p>
			<p>
				<?= $form->submit(__d('pmail', 'save', true), array('value' => 'Save', 'class' => 'button')); ?>
			</p>
		</fieldset>
	</form>
</div>
<div id="sidebar">
	<h4><?= __d('pmail', 'Coments') ?></h4>
	<p><?= __d('pmail', 'This configuration is essential') ?>.</p>
	<?= $this->requestAction('/pmail/configs/menu') ?>
	<?= $this->renderElement('recommended/links') ?>
</div>
<div class="clear"></div>